﻿using OpenHttpServer;
using OpenHttpServer.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace VIID.Server
{
    public class NonMotorVehicles : Server
    {
        public static HttpResponse POST(HttpRequest request)
        {
            if (!request.Headers.ContainsKey("User-Identify"))
                return HttpBuilder.Unauthorized();

            var Identify = request.Headers["User-Identify"];

            //转发出去
            var response = messageCallback.Invoke(Identify, VIID.COMMAND_NONMOTORVEHICLES_POST, request);


            return response;
        }
        public static HttpResponse PUT(HttpRequest request)
        {
            return new HttpResponse() { };
        }
        public static HttpResponse DELETE(HttpRequest request)
        {
            return new HttpResponse() { };
        }
        public static HttpResponse GET(HttpRequest request)
        {
            return new HttpResponse() { };
        }
        public class ID
        {
            public static HttpResponse GET(HttpRequest request)
            {
                return new HttpResponse() { };
            }
            public static HttpResponse POST(HttpRequest request)
            {
                return new HttpResponse() { };
            }
            public static HttpResponse DELETE(HttpRequest request)
            {
                return new HttpResponse() { };
            }
        }
    }
}
